package com.wuyou.designPatterns.decorator;

/**
 * Display
 *
 * @Date 2024/9/26 14:05
 * @Author 无忧
 */
public abstract class Display {

    public abstract int getColumns();

    public abstract int getRows();

    public abstract String getRowText(int row);

    public final void show(){
        for(int i=0; i<getRows(); i++){
            System.out.println(getRowText(i));
        }
    }
}
